<?php /* Smarty version Smarty-3.1.6, created on 2017-02-20 13:06:32
         compiled from "F:/cly/Show/Admin/View\News\add.html" */ ?>
<?php /*%%SmartyHeaderCode:29070589beaf7e6e445-18371863%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fa4cdeb4d65017ce1d945f3d2fad10fa29e19b10' => 
    array (
      0 => 'F:/cly/Show/Admin/View\\News\\add.html',
      1 => 1487567189,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '29070589beaf7e6e445-18371863',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_589beaf7eede0',
  'variables' => 
  array (
    'news_class' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_589beaf7eede0')) {function content_589beaf7eede0($_smarty_tpl) {?><!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="/Show/Admin/Public/css/news.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/Show/Admin/Public/ckeditor/ckeditor.js"></script>
    <title>发布新闻</title>
  </head>
  <body>
    <form action=#"" method="post" enctype="multipart/form-data">
    <div class="mainbox">
          <div class="title">&nbsp;&nbsp;发布新闻</div>
          <div class="tablebox">
            <table class="table" border="0">
              <tr>
                <td class="tdl">新闻类型</td>
                <td class="tdr">
                  <select name="n_id">
                  <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['n'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['n']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['name'] = 'n';
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['news_class']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['n']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['n']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['n']['total']);
?>
                  <option value="<?php echo $_smarty_tpl->tpl_vars['news_class']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['news_class']->value[$_smarty_tpl->getVariable('smarty')->value['section']['n']['index']]['name'];?>
</option>
                  <?php endfor; endif; ?>
                  </select>
                </td>
              </tr>
              <tr>
                <td class="tdl">新闻标题</td>
                <td class="tdr">
                  <input type="text" name="title" >
                  <input type="hidden" name="author" value="<?php echo $_SESSION['admin_name'];?>
">
                </td>
              </tr>
              <tr>
                <td class="tdl">关键字</td>
                <td class="tdr">
                  <input type="text" name="key_work" > 
                  /**在导航条二级显示**/
                </td>
              </tr>
              <tr>
                <td class="tdl">封面图片</td>
                <td class="tdr">
                  <input type="file" name="picture" >                
                </td>
              </tr>
              <tr>
                <td class="tdl">属性</td>
                <td class="tdr">
                    <input type="checkbox" name="index_round" value="1">首页轮播&nbsp;
                    <input type="checkbox" name="news_round" value="1">新闻页轮播&nbsp;
                </td>
              </tr>
              <tr>
                  <td>排序时间</td>
                  <td>
                      <input type="text" name="sort">
                      /*可设置未来时间置顶，以前时间下沉，空则当前时间，格式为 2017-2-15 13:20:10*/
                  </td>
              </tr>
              <tr>
                <td class="tdl">新闻内容</td>
                <td class="tdr">
                  <textarea id="textarea" name="contents" ></textarea>
                  <script type="text/javascript">CKEDITOR.replace('textarea');</script>
                </td>
              </tr>
              <tr>
                <td class="tdr sub" colspan="2">
                  <input type="submit" name="sub" value="确定">
                  <input id="reset" type="reset"  value="重置">
                </td>
              </tr>
            </table>
          </div>
    </div>
    </form>
  </body>
</html><?php }} ?>